package com.example.kotlin.ui;

import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.example.kotlin.R;

import java.util.ArrayList;
import java.util.List;

/**
 * @author chenmengjia
 */
public class CloudBoardActivity extends AppCompatActivity {

    private CloudPlateAdapter adapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_cloud_board);
        RecyclerView recyclerView = findViewById(R.id.list);
        List<CloudPlateEntity> data = new ArrayList<>();
        data.add(new CloudPlateEntity(1));
        data.add(new CloudPlateEntity(2));
        data.add(new CloudPlateEntity(3));
        data.add(new CloudPlateEntity(4));
        data.add(new CloudPlateEntity(5));
        data.add(new CloudPlateEntity(6));
        data.add(new CloudPlateEntity(7));
        data.add(new CloudPlateEntity(8));
        data.add(new CloudPlateEntity(9));
        adapter = new CloudPlateAdapter(data);
        recyclerView.setAdapter(adapter);
        recyclerView.setLayoutManager(new LinearLayoutManager(this));

    }
}